import java.io.*;
public class Filecontroller {
String textPath="c:\\ponaTest.txt";
String textHeader="--------------------------------------------\r\n-------The main level of Ball Game----------\r\n--------------------------------------------";
String textFooter="\r\n-------------Enjoy it------------";
FileWriter writeControl;
Filecontroller(){
	//--------------- do nothing---------------
	try {
		writeControl=new FileWriter(textPath);
	} catch (IOException e) {
		e.printStackTrace();
	}
}
public void WriteOutPut() throws Exception{
	writeControl.write(textHeader);
	writeControl.write(textFooter);
	//writeControl.close();
}
public void addingLine(String str) throws Exception {
	writeControl.write("\r\n"+str);
}
public void close() throws Exception {
	writeControl.close();
}
	
}
